package com.shitou.shitoucart.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shitou.shitoucommons.utils.PageUtils;
import com.shitou.shitoucommons.utils.Query;

import com.shitou.shitoucart.dao.MemberCartDao;
import com.shitou.shitoucart.entity.MemberCartEntity;
import com.shitou.shitoucart.service.MemberCartService;


@Service("memberCartService")
public class MemberCartServiceImpl extends ServiceImpl<MemberCartDao, MemberCartEntity> implements MemberCartService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MemberCartEntity> page = this.page(
                new Query<MemberCartEntity>().getPage(params),
                new QueryWrapper<MemberCartEntity>()
        );

        return new PageUtils(page);
    }

}
